<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@page import="com.sfd.entity.Student"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'MyJsp.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
  <%
  	Student student=(Student)request.getAttribute("student");
  %>
<form action="managerServlet?actioncode=updatestudentinfo&studentID=<%=student.getID() %>" method="post">
  <table width="378" height="427" border="1" align="center">
    <tr align="center" bgcolor="#F3F3F3">
      <td colspan="3" bgcolor="#CCFFFF">编辑学生信息</td>
    </tr>
    <tr>
      <td width="91" align="center" bgcolor="#EBEBEB">学生账号：</td>
      <td colspan="2"><%=student.getID() %></td>
    </tr>
    <tr>
      <td align="center" bgcolor="#EBEBEB"><p>姓名：</p></td>
      <td colspan="2"><input name="studentName" type="text" value=<%=student.getName() %>  />&nbsp;</td>
    </tr>
    <tr>
      <td height="40" align="center" bgcolor="#EBEBEB">性别：</td>
      <td colspan="2">男：<input type="radio" name="gender" checked="checked" value="男" />女：<input type="radio" name="gender" value="女" /></td>
    </tr>
    <tr>
      <td align="center" bgcolor="#EBEBEB">年龄：</td>
      <td colspan="2"><input name="age" type="text" value=<%=student.getAge() %> />&nbsp;</td>
    </tr>
    <tr>
      <td align="center" bgcolor="#EBEBEB">班级：</td>
      <td colspan="2"><input name="classID" type="text" value=<%=student.getClassID() %>/>&nbsp;</td>
    </tr>
    <tr>
      <td align="center" bgcolor="#EBEBEB">专业：</td>
      <td colspan="2"><select name="department">
      <option>—-请选择所在专业--</option>
      <option selected="selected">大数据与移动云计算</option>
      <option>互联网与金融</option>
      </select></td>
    </tr>
    
    <tr>
      <td align="center" bgcolor="#EBEBEB">状态：</td>
      <td colspan="2">可用：<input type="radio" name="permitted" value="1" checked="checked"/>不可用：<input type="radio" name="state" value="0" /></td>
    </tr>
    <tr bgcolor="#EBEBEB">
      <td colspan="3" align="center"><table width="251" border="0">
        <tr>
          <td width="135" align="center"><input type="submit" value="提交" /></td>
          <td width="100" align="center"><input type="reset" value="重置" /></td>
        </tr>
      </table></td>
    </tr>
  </table>

</form>
</body>
</html>
